<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="header.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Add Fitting Type</title>
</head>
<body>
<script>
	$(document).ready(function(){
	    $("table tbody tr:even").addClass("tdbgcolor1"); 
	    $("table tbody tr:odd").addClass("tdbgcolor2"); 
	});
	function checkAndSubmit(){
		var form = document.getElementById("addFittingTypeForm");
		if ( $('#fittingTypeName').val() == ""){
			alert("配件类型名称不能为空");
			$('#fittingTypeName').focus();
		}
		form.submit();
	} 
</script>
<form method="post" action="addFittingType.action" id="addFittingTypeForm">
<div align="center">新增配件类型</div>
<table width="80%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF" align="center">
	<tr>
		<td width="26%">配件类型名称:</td>
		<td width="74%"><input type="text" name="fittingTypeName" id="fittingTypeName" size="50" maxlength="50"/></td>
	</tr>
	<tr>
		<td >配件所属种类:</td>
		<td >
		<s:select list="fittingtypebases"  listValue="name" listKey="id"  name="basetypeId"  id="basetypeId"></s:select>
		</td>
	</tr>
	<tr>
		<td>语言:</td>
		<td>
			<select name="langId" id="langId">
				<option value="0">简体</option>
				<option value="1">繁体</option>
				<option value="2">英语</option>
			</select>
		</td>
	</tr>	
 	
	<tr>
		<td colspan="2">
			<input type="button" value="Save"  onclick="checkAndSubmit()"/>&nbsp;
			<input type="button" value="reset" />&nbsp;
			<input	type="button" value="返回"  onclick="javascript:window.history.back();" />
		</td>
	</tr>
	</table>
</form>
</body>
</html>
